package com.wing.purchase.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.purchase.model.entity.PurchaseStorageWork;
import com.wing.purchase.model.request.PurchaseStorageWorkForm;
import com.wing.purchase.model.request.SimpleStorageForm;
import com.wing.purchase.model.response.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 采购入库作业-Service
 *
 * @author
 */
public interface PurchaseStorageWorkService extends IService<PurchaseStorageWork> {

    /**
     * 添加
     *
     * @param purchaseStorageWorkForm
     * @return
     */
    int add(PurchaseStorageWorkForm purchaseStorageWorkForm);

    /**
     * 列表-app
     *
     * @param params
     * @return
     */
    List<PurchaseStorageWorkVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     * @return
     */
    Page<PurchaseStorageWorkVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     * @return
     */
    PurchaseStorageWorkVO get4appById(Long id);

    /**
     * 简易入库
     */
    int simpleStorage(SimpleStorageForm simpleStorageForm);


    /**
     * 查询库存明细
     * @param page
     * @param params
     * @return
     */
    Page<PurchaseProductInfoVO> getInProductInfoDetail(Page page, Map<String, Object> params);


    /**
     * 统计物料 每一天  每个仓库 的入库数量
     * @param params
     * @return
     */
    Page<PurchaseProductInfoVO> getInProductInfoDetailStatic(Page page, Map<String, Object> params);

    /**
     * 导出统计物料 每一天  每个仓库 的入库数量
     * @param params
     * @return
     */
    List<PurchaseDetailStaticExportVO> toInProductInfoDetailStaticExport(Map<String, Object> params);

    /**
     * 导出库存明细
     * @param params
     * @return
     */
    List<PurchaseDetailExportVO> exportInProductInfoDetail(Map<String, Object> params);


    /**
     * 入库作业导出
     *
     * @param page
     * @param params
     * @return
     */
    List<PurchaseStorageWorkExportVO> exportInWorkList4app(Page page, Map<String, Object> params);


}
